﻿<table class="tabela" border="1" cellpadding="0" cellspacing="0" width="425"   >
   <tr class="b">
      <td width= "80" > ID  </td>
      <td width= "80" > nazwa kategorii </td>
   </tr>
   <?php
   global $database;
   $database->query("SELECT * FROM ucat");
   while ($r=mysql_fetch_array($database->result))
   {
      echo '<tr> <td width= "80" >'.$r['ID'].'</td> <td width= "80" >'.$r['name'].'</td>';
      echo '</tr>';
   }
   ?>
</table> 